<h1>Editing generator</h1>

<%= error_messages_for :generator %>

<% form_for(@generator) do |f| %>
  <p>
    <b>Name</b><br />
    <%= f.text_field :name %>
  </p>

  <p>
    <b>Ip address</b><br />
    <%= f.text_field :ip_address %>
  </p>

  <p>
    <b>Disable</b><br />
    <%= f.check_box :disable %>
  </p>

  <p>
    <%= f.submit "Update" %>
  </p>
<% end %>

<%= link_to 'Show', @generator %> |
<%= link_to 'Back', generators_path %>
